Skip to content

Conversation

@WindowsMEMZ
Copy link
Contributor

Use throws(E) instead of throws-rethrows

@WindowsMEMZ WindowsMEMZ requested a review from a team as a code owner October 26, 2025 06:39
@WindowsMEMZ WindowsMEMZ changed the title [stdlib] Use typed throws for available types [stdlib] Use typed throws for available functions Oct 26, 2025
@glessard
Copy link
Contributor

glessard commented Nov 6, 2025

Thanks for working on this. One problem that has held back many of these generalizations is that they are protocol requirements, such as withContiguousStorageIfAvailable() being a requirement on Sequence. We need to first update the protocols, and deal with the attendant availability issues, before we can fully update to typed throws.

Copy link
Contributor

@glessard glessard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the functions that are protocol requirements from this PR. Protocol extensions for non-requirements and non-protocol functions, we should keep.

@WindowsMEMZ WindowsMEMZ requested a review from glessard November 7, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants